package 策略模式;

public class DiscountStrategy {
    private discount discount;

    public DiscountStrategy(discount discount) {
        this.discount = discount;
    }
    public  double  calculate(double price){
        return  discount.calculateDiscount(price);
    }
}
